import React from 'react'
class Home extends React.Component {
    pushLink = () => {
        this.props.history.push('/about');
    }
    replaceLink = () => {
        this.props.history.replace('/about');
    }
    render() {
        return (
            <div className="container">
				<button onClick={this.pushLink} className='btn btn-primary mr-3'>PUSH跳转</button>
				<button onClick={this.replaceLink} className='btn btn-danger'>REPLACE跳转</button>
			</div>
        )
    }
}

export default Home